﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using LINQtoNHibernateMVC.Core.Domain.Model;

namespace LINQtoNHibernateMVC.Infrastructure.DataAccess.Mappings {
	public class PersonMap : ClassMap<Person> {
		public PersonMap() {
			Id(p => p.Id)
				.GeneratedBy
				.GuidComb();
			Map(x => x.Name)
				.Length(50);
		}
	}
}
